<template>
  <div class="nav">
      <van-nav-bar
        :title="title"
        right-text="="
        left-arrow
        @click-left="$router.go(-1)"
        @click-right="$router.go(0)"
        />
  </div>
</template>

<script>

export default {
  props: {
    title: {
      type: String,
      requred: true
    }
  }
}
</script>

<style lang="scss" scoped>
.nav{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}
/deep/ .van-icon-arrow-left{
    color: #000;
    font-size: 20px;
}
/deep/ .van-nav-bar__text{
     color: #000;
     font-size: 20px;
}
</style>
